#ifndef __LINKSTACK_H_
#define __LINKSTACK_H_

#include "doubleLinkList.h"

class linkStack{
public:
    using elementType = doubleLinkList::elementType;
    linkStack();
    ~linkStack();
    //入栈
    void push(const elementType &element);
    void pop();
    elementType* getTop();
    bool isEmpty();
    size_t Size(){return list.Size();}
private:
    doubleLinkList list;

};

#endif